<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let set1 = new Set([1,2,3,52,'a', 'b']);
        set1.keys(item => {
            console.log(item);
        })
        // set的key和value相等
        console.log(set1.keys());
        console.log(set1.values());
        console.log(set1.entries());
        set1.forEach(item => {
            console.log(item);
        })
    </script>
</body>
</html>